Xbasic

PAGENO Function

Syntax

Page_Number as N = PAGENO([g group])

Arguments

group

Optional. Group name.

Description

PAGENO() returns the current page number of a printed layout. If the optional Group Name is specified, the page count will be restarted each time the group repeats.

To display the number of pages printed for each state in a customer report by the STATE field, place a calculated field that uses the following expression in the Group Page Footer:

pageno(GRP->STATE)

To place a page number at the bottom of every page in your report, place a calculated field that uses the following expression in the Report Page Footer:

"Page " + ltrim( str( pageno() ) ) ->  "Page 5", if the current page number is 5.

See Also